package my.edu.model.commodity.service;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import my.edu.model.commodity.entity.ProductCategory;
import my.edu.model.commodity.entity.dto.ProductCategoryDTO;
import my.edu.model.commodity.entity.vo.ProductCategoryVO;

import java.util.List;

public interface IProductCategoryService extends IService<ProductCategory> {
    List<ProductCategoryVO> listAll(Long id);

    void saveNew(ProductCategoryDTO productCategoryDTO);

    void updateByDTO(ProductCategoryDTO productCategoryDTO);

    JSONArray listAllOnly();

}
